package com._9xcloud.leaverequest.service;

import com._9xcloud.leaverequest.domain.Course;
import com._9xcloud.leaverequest.domain.Subject;
import com._9xcloud.leaverequest.domain.Teacher;

import java.util.List;
import java.util.Set;

/**
 * Created by hyq on 2015/5/25.
 */
public interface CourseService {
    Course getById(int courseId);

    Set<Course> getByStudentId(int studentId);

    Set<Course> getByTeacherId(int teacherId);

    Course create(Subject subject, Teacher teacher, String address);

    List<Course> getAll();

    void update(Course course);

    void removeAll();
}
